<%@ page import="com.carmanagement.Vehicle" %>


<div class="fieldcontain ${hasErrors(bean: vehicleInstance, field: 'registerNumber', 'error')} required">
	<label for="registerNumber">
		<g:message code="vehicle.registerNumber.label" default="Register Number" />
		<span class="required-indicator">*</span>	
	</label>
	<g:textField name="registerNumber" value="${vehicleInstance?.registerNumber}" required=""/>
</div>
<div class="fieldcontain ${hasErrors(bean: vehicleInstance, field: 'kilometers', 'error')} required">
	<label for="kilometers">
		<g:message code="vehicle.kilometers.label" default="kilometers" />
		<span class="required-indicator">*</span>	
	</label>
	<g:textField name="kilometers" value="${vehicleInstance?.kilometers}" required="" pattern="\\d+(\\.\\d{2})?"/>
</div>
<div class="fieldcontain ${hasErrors(bean: vehicleInstance, field: 'type', 'error')} required">
	<label for="type">
		<g:message code="vehicle.type.label" default="type" />
		<span class="required-indicator">*</span>	
	</label>
	<g:textField name="type" value="${vehicleInstance?.type}" required=""/>
</div>
<div class="fieldcontain ${hasErrors(bean: vehicleInstance, field: 'price', 'error')} required">
	<label for="price">
		<g:message code="vehicle.price.label" default="price" />
		<span class="required-indicator">*</span>		
	</label>
	<g:textField name="price" value="${vehicleInstance?.price}" required="" pattern="\\d+(\\.\\d{2})?"/>
</div>